package cn.itcast.controller;

import cn.itcast.demo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author syf
 * @version 1.0
 * @date 2019/07/25 16:31
 * @Description TODO:
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("{id}")
    public User findUserById(@PathVariable(name = "id") Long id){
        System.out.println(121212);
        return new User(id,"name","123","email","男",20);
    }
}
